class OrderInfo {
  String name;
  String appearance;
  String prompt;
  double price;
  int    number;
  OrderInfo({
    this.name,
    this.appearance,
    this.prompt,
    this.price,
    this.number = 1
  });

  factory OrderInfo.fromJson(Map<String, dynamic> map){
    return OrderInfo(name:map['name'], appearance: map['appearance'], prompt: map['prompt'], price:map['price'], number:map['number']);
  }

  Map<String, dynamic> getJson() {
    return {
      'name':this.name,
      'appearance':this.appearance,
      'prompt':this.prompt,
      'price':this.price,
      'number':this.number,
    };
  }

}